package com.knight.threadpool;

import com.knight.model.Log;
import com.knight.service.LogService;

public class SaveLogTask implements Runnable {


    private LogService logService;


    private Log log;


    public SaveLogTask(LogService logService,Log log) {
        this.logService = logService;
        this.log = log;
    }

    @Override
    public void run() {
        logService.saveLog(log);
    }
}
